/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const medicalRouter =
  {
    path: '/medical',
    component: Layout,
    redirect: '/medical',
    name: 'Medical',
    meta: { title: 'Medical', icon: 'medical', roles: ['admin', 'doctor'] },
    children: [
      {
        path: '/medical',
        component: () => import('@/views/medical/index'),
        name: 'medical',
        meta: { title: 'Medical', icon: 'medical', breadcrumb: false, roles: ['admin', 'doctor'] }
      },
      {
        path: '/sportsMedicine/newCase',
        component: () => import('@/views/medical/index'),
        name: ' Sport Medicine',
        meta: { title: 'sports medicine', noCache: true, roles: ['admin', 'doctor'] },
        hidden: true
      },
      {
        path: '/medical/newCase',
        component: () => import('@/views/medical/newCase'),
        name: 'newCase',
        meta: { title: 'Case', noCache: true, roles: ['admin', 'doctor'] },
        hidden: true
      },
      {
        path: '/medical/classificationNewCase',
        component: () => import('@/views/medical/classificationNewCase'),
        name: 'classificationNewCase',
        meta: { title: 'Classification', noCache: true, roles: ['admin', 'doctor'] },
        hidden: true
      },
      {
        path: 'draw',
        component: () => import('@/views/medical/draw'),
        name: 'draw',
        meta: {
          title: 'Case',
          noCache: true,
          activeMenu: '/home/draw', roles: ['admin', 'doctor']
        },
        hidden: true
      }
    ]
  }
export default medicalRouter
